﻿<controls:ChildWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input" x:Class="SUMO.MediaBrowser.Controls.LoginWindow"
           Width="400" Height="300" 
           Title="Login to Umbraco" mc:Ignorable="d">
	<Grid x:Name="LayoutRoot" Margin="2">
		<Grid.RowDefinitions>
			<RowDefinition />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>

		<Grid.ColumnDefinitions>
			<ColumnDefinition/>
		</Grid.ColumnDefinitions>

		<Button x:Name="OKButton" Content="Close" Click="OKButton_Click" Height="23" Margin="0,12,79,0" Grid.Row="1" HorizontalAlignment="Right" Width="75" TabIndex="4"/>
		<PasswordBox Margin="147,0,23,82" Password="{Binding Password,Mode=TwoWay}" VerticalAlignment="Bottom" TabIndex="3" Name="Password"/>		
        <TextBox Margin="147,92,23,110" Text="{Binding Username,Mode=TwoWay}" TextWrapping="NoWrap" d:LayoutOverrides="Height" TabIndex="2" Name="Username"/>
		<TextBox Margin="147,64,23,0" Text="{Binding ServiceBase,Mode=TwoWay}" TextWrapping="NoWrap" VerticalAlignment="Top" Height="24" d:LayoutOverrides="VerticalAlignment" Name="ServiceBaseUrl" TabIndex="1"/>
		<TextBlock HorizontalAlignment="Left" Margin="25,8,0,0" VerticalAlignment="Top" TextWrapping="Wrap"><Run Text="Please enter your"/><Run Text=" credentials below to connect to Umbraco."/><Run Text=" "/></TextBlock>
		<dataInput:Label HorizontalAlignment="Left" Margin="29,68,0,0" VerticalAlignment="Top" Content="Media servive URL:"/>
		<dataInput:Label HorizontalAlignment="Left" Margin="80,0,0,84" VerticalAlignment="Bottom" Content="Password:"/>
		<dataInput:Label HorizontalAlignment="Left" Margin="76,98,0,112" Content="Username:" d:LayoutOverrides="Height"/>
		<Button HorizontalAlignment="Right" Margin="0,12,0,1" Width="75" Content="Cancel" Grid.Row="1" d:LayoutOverrides="Height" Click="CancelButton_Click" TabIndex="5"/>
	</Grid>
</controls:ChildWindow>